package exception;

public class ThrowDemo {
    public static void main(String[] args) {
        System.out.println("程序开始了");
        try {
            Person p = new Person();
            p.setAge(10000);
            System.out.println("此人年龄:"+p.getAge()+"岁");
        } catch (IlllegalAgeException e) {
            e.printStackTrace();
        }
    }
}
